 <?php
 	function main_header($nr)
        {
  	      
			echo "<html>";
			echo "<head>";
			echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />";
			echo "<title>ANC</title>";
			echo "<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />";
			echo "<meta name=\"description\" content=\"ANC\" />";
			echo "<meta name=\"keywords\" content=\"ANC\" />";
			echo "<meta name=\"copyright\" content=\"ANC\" />";
			echo "</head>";
			echo "<body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">";
			echo "<table height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
			echo "<td width=\"50%\" background=\"images/bg.jpg\"></td>";
			echo "<td background=\"images/bg_lft.jpg\" style=\"padding-left:28\"></td>";
			echo "<td bgcolor=\"#FFFFFF\" valign=\"top\" height=\"100%\">";
			
			echo "<img src=\"images/addcornc.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/addgroup.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/adduser.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/arrowblue_2.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/arrow_down.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/arrow_up.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/back_center.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/back_icon.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/back_left.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/back_right.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/bg.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/bg_lft.gif\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/bg_lft.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/bg_lft2.gif\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/bg_mymenu.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/bottom.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/buton.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/buton_hover.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/Decorative-Navigation-Button.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/delete-icon.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/deletecornc.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/download-icon.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/download.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/files.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/first_page.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/folder.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/folder_add.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/footer.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/header.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/header_anc.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/header_big.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/lacat.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/listgroups.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/listusers.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/login_icon.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/my4.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/shakehands.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/spacer.gif\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/text_1.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/text_2.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/ui-icons_222222_256x240.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/upload_image.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/up_folder.png\" alt=\"ANC\" style=\"display:none\"/>";
			echo "<img src=\"images/white.jpg\" alt=\"ANC\" style=\"display:none\"/>";
			
			echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"1000\" height=\"100%\">";
					echo "<tr>";
						echo "<td colspan=\"2\"><center><img src=\"images/header_anc.jpg\" border=\"0\" alt=\"\"><center></td>";
					echo "</tr>";
					echo "<tr>";
						echo "<td colspan=\"2\" class=\"header\" height=\"45\" valign=\"top\">";
							include "includes".DIRECTORY_SEPARATOR."login.php";
						echo "</td>";
					echo "</tr>";
		  
					echo "<tr>";
	    	    		echo "<td colspan=\"2\" height=\"40\" valign=\"top\">";		  
						  echo "<div id=\"menu\">";
						   if( empty($_SESSION['user']) )
						   {
								if($nr == 1)
									echo "<a href=\"index.php\" id=\"on\">Acasa</a>";
								else
									echo "<a href=\"index.php\">Acasa</a>";
								if($nr == 2)
									echo "<a href=\"public_search.php\" id=\"on\">Cauta</a>";
								else
									echo "<a href=\"public_search.php\">Cauta</a>";
									
								if($nr == 3)
									echo "<a href=\"public_centralizator.php\" id=\"on\">Centralizator</a>";
								else
									echo "<a href=\"public_centralizator.php\">Centralizator</a>";
						   }	
				         echo "</div>";
						 
						 echo "<img style=\"padding-left:20;padding-right:30;float:right;border=1px\" src=\"images/login_icon.png\" alt=\"\"/>";

						echo "</td>";
					echo "</tr>";	
	}
	?>
	